home *** CD-ROM | disk | FTP | other *** search
-
-
-
- DNSQUERY(1) DNSQUERY(1)
-
-
- NNAAMMEE
- dnsquery - query domain name servers using resolver
-
- SSYYNNOOPPSSIISS
- ddnnssqquueerryy [-n _n_a_m_e_s_e_r_v_e_r_] [-t _t_y_p_e_] [-c _c_l_a_s_s_] [-r _r_e_t_r_y_]
- [-p _r_e_t_r_y _p_e_r_i_o_d_] [-d] [-s] [-v] host
-
- DDEESSCCRRIIPPTTIIOONN
- The _d_n_s_q_u_e_r_y program is a general interface to nameservers
- via BIND resolver library calls. The program supports
- queries to the nameserver with an opcode of QUERY. This
- program is intended to be a replacement or supplement to
- programs like nstest, nsquery and nslookup. All arguments
- except for _h_o_s_t and _n_s are treated without case-
- sensitivity.
-
- OOPPTTIIOONNSS
- --nn The nameserver to be used in the query. Name-
- servers can appear as either Internet addresses
- of the form w.x.y.z or can appear as domain
- names. (default: as specified in
- /etc/resolv.conf)
-
- --tt The type of resource record of interest. Types
- include:
-
- A address
- NS nameserver
- CNAME canonical name
- PTR domain name pointer
- SOA start of authority
- WKS well-known service
- HINFO host information
- MINFO mailbox information
- MX mail exchange
- RP responsible person
- MG mail group member
- AFSDB
- DCE or AFS server
- ANY wildcard
-
- Note that any case may be used. (default: ANY)
-
- --cc The class of resource records of interest.
- Classes include:
-
- IN Internet
- HS Hesiod
- CHAOS Chaos
- ANY wildcard
-
- Note that any case may be used. (default: IN)
-
- --rr The number of times to retry if the nameserver
-
-
-
- 10 March 1990 1
-
-
-
-
-
- DNSQUERY(1) DNSQUERY(1)
-
-
- is not responding. (default: 4)
-
- --pp Period to wait before timing out. (default:
- RES_TIMEOUT) _o_p_t_i_o_n_s field. (default: any
- answer)
-
- --dd Turn on debugging. This sets the RES_DEBUG bit
- of the resolver's _o_p_t_i_o_n_s field. (default: no
- debugging)
-
- --ss Use a _s_t_r_e_a_m rather than a packet. This uses a
- TCP stream connection with the nameserver rather
- than a UDP datagram. This sets the RES_USEVC
- bit of the resolver's _o_p_t_i_o_n_s field. (default:
- UDP)
-
- --vv Synonym for the 's' flag.
-
- hhoosstt The name of the host (or domain) of interest.
-
- FFIILLEESS
- /etc/resolv.conf to get the default ns and search lists
- <arpa/nameser.h> list of usable RR types and classes
- <resolv.h> list of resolver flags
-
- SSEEEE AALLSSOO
- nslookup(8), nstest(1), nsquery(1), named(8), resolver(5)
-
- DDIIAAGGNNOOSSTTIICCSS
- If the resolver fails to answer the query and debugging
- has not been turned on, _d_n_s_q_u_e_r_y will simply print a mes-
- sage like:
-
- Query failed (rc = 1) : Unknown host
-
- The value of the return code is supplied by h_errno.
-
- BBUUGGSS
- Queries of a class other than IN can have interesting
- results since ordinarily a nameserver only has a list of
- root nameservers for class IN resource records.
-
- Query uses a call to inet_addr() to determine if the argu-
- ment for the '-n' option is a valid Internet address.
- Unfortunately, inet_addr() seems to cause a segmentation
- fault with some (bad) addresses (e.g. 1.2.3.4.5).
-
- AAUUTTHHOORR
- Bryan Beecher
-
-
-
-
-
-
-
-
- 10 March 1990 2
-
-
-